﻿namespace Softelligent.Zintra.Synchronizations.ContactsExpressConsole.Entities
{
    public class Contact
    {
        public int Id { get; set; }
        public string UnformattedName { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string WorkEmailAddress { get; set; }
        public string HomeEmailAddress { get; set; }
        public virtual Address Address { get; set; }

        public string FullName()
        {
            if (!string.IsNullOrEmpty(UnformattedName))
            {
                return UnformattedName;
            }
            return string.Concat(FirstName, " ", LastName);
        }
    }
}
